/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cassys.action;

/**
 *
 * @author ASUS
 */
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.Preparable;

public class CassysSupport extends ActionSupport implements
        ServletRequestAware, SessionAware, Preparable {

    protected HttpServletRequest request;
    protected Map<String, Object> session;

    @Override
    public void setServletRequest(HttpServletRequest httpServletRequest) {
        this.request = httpServletRequest;
    }

    public HttpServletRequest getRequest() {
        return request;
    }

    public HttpSession getSession(boolean b) {
        return request.getSession(b);
    }

    @Override
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }

    @Override
    public void prepare() throws Exception {
        //throw new UnsupportedOperationException("Not supported yet.");
    }
}
